<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/12/23
  Time: 9:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>用户信息查询</title>
    <%--    引入jquery资源文件：必须在bootstrap资源文件之前引入--%>
    <script type="text/javascript" src="jquery-1.12.4/jquery-1.12.4.js"></script>
    <%--    引入bootstrap的资源文件--%>
    <script type="text/javascript" src="bootstrap-3.3.6-dist/js/bootstrap.js"></script>
    <link rel="stylesheet" type="text/css" href="bootstrap-3.3.6-dist/css/bootstrap.css">
</head>
<body style="margin: auto;padding-left: 20px">
<form action="getUserInfoservlet">
    <button class="btn btn-info">查询</button>
</form>
<%--${sessionScope.get("userinfoes")}--%>
<table class="table table-hover">
    <thead>
        <tr>
            <th>序号</th>
            <th>用户名</th>
            <th>密码</th>
            <th>地址</th>
            <th>联系电话</th>
            <th>头像</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    <c:forEach items="${sessionScope.userinfoes}" var="eachBean" varStatus="stat">
        <tr>
            <td>
                    ${stat.index+1}
            </td>
            <td>
                    ${eachBean.username}
            </td>
            <td>
                    ${eachBean.userpwd}
            </td>
            <td>
                    ${eachBean.useraddress}
            </td>
            <td>
                    ${eachBean.usertel}
            </td>
            <td>

                    <img src="${eachBean.imgsrc}" style="width: 200px;height: 200px">

            </td>
            <td>
                <a href="getUserInfoById?id=${eachBean.id}" class="btn btn-primary" id="updata" >修改</a>
                <a class="btn btn-danger" href="deleteUserInfo?id=${eachBean.id}" id="delete">删除</a>
            </td>
        </tr>
    </c:forEach>
    </tbody>




</table>

</body>
</html>
